<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Untitled Document</title>
<script>
	window.onload = function()
	{
		var oA = document.getElementsByTagName('a');
		var	oUl = document.getElementById('ul1');
		
		for(var i=0 ; i<oA.length;i++)
			{
				oA[i].onclick = function()
				{
						oUl.removeChild(this.parentNode);
				};
			}
	}
	</script>
</head>

<body>
<ul id="ul1">
	<li>1<a href="javascript:;">delete</a></li>
	<li>2<a href="javascript:;">delete</a></li>
	<li>3<a href="javascript:;">delete</a></li>
</ul>
</body>
</html>
